
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type=""></script>
    <title>Title</title>
</head>
<body>
<h2>调查结果</h2>


<c:choose >
    <c:when test="${empty list}">
        <script>alert("没有数据,请查看!")</script>
    </c:when>
    <c:otherwise>
        <c:forEach items="${list}" var="v" varStatus="c">
            <table style="border: solid 1px grey;width: 100%;background-color:papayawhip">
                <tr>
                    <td width="67px">${v.item}</td>
                    <td><span style="display:inline-block;background-color:red;height: 20px;width:${v.times}px"></span></td>
                </tr>
            </table>

        </c:forEach>
    </c:otherwise>
</c:choose>


<a href="vote.html">返回</a>
</body>
</html>
